var templateMenuList = `
<ul class ="classOne">
    <li><a href="list_page.html" id="serverPage">服务列表页</a></li>
    <li><a href="user_list.html" id="userPage">接入方列表</a></li>
    <li><a href="list_page.html">日志查询</a></li>
    <li><a href="list_page.html">首页</a></li>
    <li><a href="list_page.html">首页</a></li>
    <li><a href="list_page.html">首页</a></li>
    <li><a href="list_page.html">首页</a></li>
</ul>
`;

var templateServiceList = `
<li>
    <input type='checkbox' name='service' value='$i$'>
    <b>$i+1$</b>
    <b class='name'>$name$</b>
    <b class='desc'>$desc$</b>
    <b class='remark'>$remark$</b>
    <b>$author$</b>
    <b>$createTime$</b>
    <b class="w-150">
        <span>
            <img class='ico update_btn' src='lib/ico/set.png' num="$i$" op='set' val='$id$' ></img>
            <i class='btn update_btn'>配置</i>
        </span>
        <span class="trigger" name='startOrstop' def='0' val='$status$' num='$i$'>
            <img class='ico trigger'   src='lib/ico/start.png'></img>
            <i>启用</i>
        </span>
        <span class="trigger" name='startOrstop' def='1' val='$status$' num='$i$'>
            <img class='ico trigger'   src='lib/ico/stop.png'></img>
            <i>停用</i>
        </span>
        
    </b>
</li>
`;

var templateServiceListHead = `
<ul>
    <li>
        <input type='checkbox' name='all' value='0'>
        <input id="serviceValue" type='hidden' name='serviceValue' value=''>
        <b>序号</b>
        <b class='name'>服务名</b>
        <b class='desc'>描述</b>
        <b class='remark'>备注</b>
        <b>作者</b>
        <b>创建时间</b>
        <b class="w-150">操作</b>
    </li>
</ul>
`;
//对接人列表页 表头
var templateUserListHead = `
<ul>
    <li>
        <input type='checkbox' name='all' value='0'>
        <input type='hidden' name='userValue' value='' id='userValue'>
        <b class="w-50">序号</b>
        <b>接入方标识名</b>
        <b class="w-150">描述</b>
        <b>对接人姓名</b>
        <b>对接人电话</b>
        <b class="w-150">对接人邮箱</b>
        <b>创建时间</b>
        <b>状态</b>
        <b  class="w-150">操作</b>
    </li>
</ul>
`;
//对接人列表页 表中内容
var templateUserListContent = `
<li>
    <input type='checkbox' name='user' value='$i$'>
    <b class="w-50">$i+1$</b>
    <b class='userTagName'>$userTagName$</b>
    <b class='w-150 userDesc'>$userDesc$</b>
    <b class='userName'>$userName$</b>
    <b>$userMobile$</b>
    <b class="w-150">$userEmail$</b>
    <b>$createTime$</b>
    <b>$status$</b>
    <b class="w-150">
	<span>
	    <img class='ico update_btn' src='lib/ico/update.png' num="$i$" op='set' val='$id$' ></img>
        <i num="$i$" class='btn update_btn'>更新</i>
	</span>	
		
	<span class="trigger" name='useOrNo' def='0' val='$status$' num='$i$'>
		 <img class='ico trigger'   src='lib/ico/start.png'></img>
         <i num="$i$"  class='btn trigger start_btn' name='useOrNo1' def="0" val="$status$">启用</i>
	</span>
	<span class="trigger" name='useOrNo' def='1' val='$status$' num='$i$'>
		 <img class='ico trigger'   src='lib/ico/stop.png'></img>
          <i num="$i$" class='btn trigger stop_btn' name='useOrNo1' def="1" val="$status$">禁用</i>
	</span>
    </b>
</li>
`;

//服务配置表单
var templateServiceForm = `
<div class="form serviceForm">
    <p>
        <label for='serviceName'>服务名称</label>
        <input id='serviceName'  type="text" name="serviceName" >
    </p>
    <p>
        <label for='serviceDesc' >服务描述</label>
        <input id='serviceDesc' type="text" name="serviceDesc">
    </p>
    <p>
        <label for='serviceAuthor'>作者</label>
        <input id='serviceAuthor'  type="text" name="serviceAuthor">
    </p>
    <p>
        <label for='serviceRemark'>备注</label>
        <input id='serviceRemark'  type="text" name="serviceRemark">
    </p>
    <p>
        <label for="serviceXml" >xml 数据</label>
        <textarea id='serviceXml' class="service_xml" name="serviceXml"></textarea>
    </p>
    <p>
        <label >是否映射为外部服务</label>
        <b id="isOutService" class="switch"></b>
    </p>
    <p class="outServiceConfig hidden">
            <label for='outServiceName' >对外暴露的服务名称</label>
            <input id='outServiceName' type="text" name="outServiceName" >
    </p>
    <p class="btn_content">
        <b class="submit">提    交</b>
    </p>
</div>
`;
//接入方配置列表
var templateUserConfigForm=`
<div class="form serviceForm">
    <p>
        <label for='userTagName'>接入方标识名</label>
        <input id='userTagName'  type="text" name="userTagName" value="$userTagName$">
    </p>
    <p>
        <label for='userDesc' >接入方描述</label>
        <input id='userDesc' type="text" name="userDesc" value="$userDesc$">
    </p>
    <p>
        <label for='userName'>接入方姓名</label>
        <input id='userName'  type="text" name="userName"  value="$userName$">
    </p>
    <p>
        <label for='userMobile'>接入方电话</label>
        <input id='userMobile'  type="text" name="userMobile" value="$userMobile$">
    </p>
    <p>
        <label for="userEmail" >接入方邮箱</label>
        <input id='userEmail'  type="text" name="userEmail" value="$userEmail$">
    </p>
    <p>
        <label for="userKey" >分配给接入方的 key</label>
        <input class="user_key" id='userKey'  type="text" name="userKey" value="$userKey$">
        <b class="btn create_key" val="key" >生成 key</b>
    </p>
    <p>
        <label for="userScrect" >分配给接入方的密钥</label>
        <input class="user_screct" id='userScrect'  type="text" name="userScrect" value="$userScrect$">
        <b class="btn create_screct" val="screct" >生成 screct</b>
    </p>
    <p>
        <b class="submit">提    交</b>
    </p>
</div>
`;
